import React from 'react';
import { Link } from 'react-router-dom';
import { renderRoutes } from 'react-router-config'

export default class FyAdvantage extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            route: props.route,
        }
    }

    render (){
        const route = this.state.route;
        return(
            <div>
                {renderRoutes(route.children)}
                <div>
                    <ul>
                        <li>
                            <Link to="/advantage/advantage1">advantage1</Link>
                        </li>
                        <li>
                            <Link to="/advantage/advantage2">advantage2</Link>
                        </li>
                        <li>
                            <Link to="/advantage/advantage3">advantage3</Link>
                        </li>
                    </ul>
                </div>
            </div>
        )
    }
}
